package com.atguigu.srb.sms.feign.fallback;

import com.atguigu.srb.common.result.R;
import com.atguigu.srb.sms.feign.SrbCoreClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: Gavin
 * @Date: 7/11/2023 9:50 PM
 */
@Component
@Slf4j
public class SrbCoreClientFallback implements SrbCoreClient {
    @Override
    public R checkMobile(String mobile) {
        log.error("验证手机号:{} 是否被占用失败",mobile);
        return R.error();
    }
}
